Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    title: {
      type: String,
      value: ''
    },
    confirmText: {
      type: String,
      value: '确定'
    },
    addText: {
      type: String,
      value: '添加'
    }
  },
  methods: {
    onClose() {
      this.triggerEvent('close');
    },
    onConfirm() {
      this.triggerEvent('confirm');
    },
    onAdd() {
      this.triggerEvent('add');
    },
    stop() {}
  }
});